8ab89d2846cc4d9d9bbcca6da563d88a109ffd9b
[git-annex.git] /
1 [[!comment format=mdwn
2  username="joey"
3  subject="""comment 1"""
4  date="2022-02-21T19:16:13Z"
5  content="""
6 The only difference between those two is that git-annex unlock stages the
7 unlocking, while replacing the file with unlocked content does not stage
8 it yet.
9
10 Both files are unlocked in the working tree though. One is unlocked in
11 the index, and the other one is not yet. But git-annex find examines the
12 working tree.
13
14 What you are looking for is a a way to have `git-annex find`
15 ignore the working tree and find files that are unlocked in the index.
16 That is doable:
17
18         git-annex find --branch=$(git write-tree) --unlocked
19 """]]